home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 106
/
Vol 106.iso
/
games
/
honey_be.swf
/
scripts
/
frame_10
/
DoAction.as
Wrap
Text File
|
2010-04-12
|
23KB
|
932 lines
MovieClip.prototype.popempty = function()
{
r.stat.attachMovie("emptycan","emptycan",r.nbd + 100,{_x:345,_y:160});
};
MovieClip.prototype.initwatermeter = function()
{
var t = this;
t._alpha = 0;
t.onEnterFrame = function()
{
if(t._parent.zone.hitTest(r._xmouse,r._ymouse,1) or r.act == "pumping" or r.act == "watering")
{
t._alpha = Math.min(100,t._alpha + 10);
}
else
{
t._alpha = Math.max(0,t._alpha - 10);
}
t.bar._yscale = r.watercontent / r.watercontentmax * 100;
};
stop();
};
MovieClip.prototype.initmap = function()
{
if(r.totalfence < 2 && r.totalbeeskep.length < 3)
{
var _loc10_ = 10;
}
else
{
_loc10_ = 0;
}
var _loc11_ = 0;
var _loc3_ = 400;
var _loc1_ = 10;
var _loc14_ = 0;
var _loc6_ = 125;
var _loc2_ = _loc11_ + 100 + _loc10_;
var _loc5_ = 1;
while(_loc5_ <= r.totalfence)
{
m.attachMovie("fence" + _loc5_,"fence" + _loc5_,_loc1_,{_x:_loc2_,_y:_loc3_});
m.place.attachMovie("soil","soil" + _loc5_,_loc1_,{_x:_loc2_,_y:_loc3_});
_loc2_ += _loc6_;
_loc1_ = _loc1_ + 1;
_loc5_ = _loc5_ + 1;
}
_loc2_ += _loc10_;
m.attachMovie("pump","pump",_loc1_,{_x:_loc2_,_y:_loc3_ + 3});
_loc1_ = _loc1_ + 1;
_loc2_ += 22;
m.attachMovie("watercan" + r.watercansize,"watercan",_loc1_,{_x:_loc2_,_y:_loc3_ - 22});
_loc1_ = _loc1_ + 1;
_loc2_ += 65 + _loc10_;
m.attachMovie("roundtable","roundtable",_loc1_,{_x:_loc2_,_y:_loc3_ + 3});
_loc1_ = _loc1_ + 1;
if(r.honeytype.length == 3)
{
pos = [{xx:_loc2_ - 16,yy:_loc3_ - 62},{xx:_loc2_,yy:_loc3_ - 59.5},{xx:_loc2_ + 16,yy:_loc3_ - 62}];
}
else if(r.honeytype.length == 2)
{
pos = [{xx:_loc2_ - 10,yy:_loc3_ - 60},{xx:_loc2_ + 10,yy:_loc3_ - 60}];
}
else
{
pos = [{xx:_loc2_,yy:_loc3_ - 60}];
}
_loc5_ = 0;
while(_loc5_ < r.honeytype.length)
{
m.attachMovie("pouch" + r.honeytype[_loc5_],"pouch" + r.honeytype[_loc5_],_loc1_,{_x:pos[_loc5_].xx,_y:pos[_loc5_].yy});
_loc1_ = _loc1_ + 1;
_loc5_ = _loc5_ + 1;
}
_loc2_ += 80;
var _loc4_ = 1;
_loc6_ = 85;
var _loc8_ = r.totalbeeskep.count(1);
var _loc9_ = r.totalbeeskep.count(2);
if(_loc8_)
{
_loc5_ = 0;
while(_loc5_ < _loc8_)
{
m.attachMovie("beeskep","beeskep" + _loc4_,_loc1_,{_x:_loc2_,_y:_loc3_,bsize:1});
_loc2_ += _loc6_;
_loc4_ = _loc4_ + 1;
_loc1_ = _loc1_ + 1;
_loc5_ = _loc5_ + 1;
}
}
_loc5_ = 0;
while(_loc5_ < _loc9_)
{
m.attachMovie("beeskep","beeskep" + _loc4_,_loc1_,{_x:_loc2_,_y:_loc3_,bsize:2});
_loc2_ += _loc6_;
_loc4_ = _loc4_ + 1;
_loc1_ = _loc1_ + 1;
_loc5_ = _loc5_ + 1;
}
_loc2_ += 60 + _loc10_;
m.attachMovie("tablebig","tablebig",_loc1_,{_x:_loc2_,_y:_loc3_});
_loc1_ = _loc1_ + 1;
if(r.honeytype.length == 1)
{
m.attachMovie("basket" + r.honeytype[0],"basket1",_loc1_,{_x:_loc2_ - 40,_y:_loc3_ - 70});
_loc1_ = _loc1_ + 1;
r.maxwid = _loc2_;
}
else if(r.honeytype.length == 2)
{
m.attachMovie("basket" + r.honeytype[0],"basket1",_loc1_,{_x:_loc2_ - 45,_y:_loc3_ - 70});
_loc1_ = _loc1_ + 1;
m.attachMovie("basket" + r.honeytype[1],"basket2",_loc1_,{_x:_loc2_ + 25,_y:_loc3_ - 70});
_loc1_ = _loc1_ + 1;
r.maxwid = _loc2_ + 100;
}
else
{
m.attachMovie("basket1","basket1",_loc1_,{_x:_loc2_ - 62,_y:_loc3_ - 70});
_loc1_ = _loc1_ + 1;
m.attachMovie("basket2","basket2",_loc1_,{_x:_loc2_,_y:_loc3_ - 70});
_loc1_ = _loc1_ + 1;
m.attachMovie("basket3","basket3",_loc1_,{_x:_loc2_ + 62,_y:_loc3_ - 70});
_loc1_ = _loc1_ + 1;
r.maxwid = _loc2_ + 160;
}
m.tree._x = m.tablebig._x + 160;
};
MovieClip.prototype.removeorder = function(id)
{
r.order.splice(id,1);
var _loc1_ = id;
while(_loc1_ < r.order.length)
{
if(r.order[_loc1_])
{
r.order[_loc1_].id--;
}
_loc1_ = _loc1_ + 1;
}
};
MovieClip.prototype.initnote = function()
{
var t = this;
t.xx = t._x;
t.yy = t._y;
t._y -= 30;
t._alpha = 0;
t.d = 17;
t.but.enabled = false;
t.onEnterFrame = function()
{
t._y += (t.yy - t._y) / 5;
t._alpha = Math.min(100,t._alpha + 10);
t.d--;
if(!t.d)
{
t._y = t.yy;
t._alpha = 100;
t.mouseover = 0;
t.d = r.notetime;
t.idnow = t.id;
t.onEnterFrame = function()
{
t.xx = r.ox + t.id * r.ospacing;
t._x += (t.xx - t._x) / 5;
if(t.zone.hitTest(r._xmouse,r._ymouse,1))
{
t.but.enabled = true;
t.a.hilite();
t.mouseover = 1;
popbignote(t.id,t.onumber,t.no,t.from,t.tipe,t.quan);
}
else
{
t.mouseover = 0;
t.a.nolite();
}
t.d--;
t.timer.bar._xscale = Math.max(0,Math.min(t.d / r.notetime * 100,100));
if(!t.d)
{
t.onEnterFrame = function()
{
t._alpha -= 10;
if(t._alpha <= 0)
{
if(r.stat.notebig.onumber == t.onumber)
{
r.stat.notebig.removeMovieClip();
}
removeorder(t.id);
t.removeMovieClip();
}
};
}
};
}
};
t.stop();
};
MovieClip.prototype.toCurrency = function(amount)
{
var _loc1_ = amount % 100;
if(!_loc1_)
{
var _loc3_ = Math.floor(amount / 100) + ".00";
}
else
{
if(_loc1_ < 10)
{
_loc1_ = "0" + _loc1_;
}
_loc3_ = Math.floor(amount / 100) + "." + _loc1_;
}
return _loc3_;
};
MovieClip.prototype.cekfulfill = function()
{
var t = this;
var b = r.stat.notebig;
if(r.jars[t.no] >= t.sum)
{
r.ofulfilled = r.ofulfilled + 1;
r.jarsold[t.no] += t.sum;
r.jarsoldtotal += t.sum;
r.jars[t.no] -= t.sum;
b.attachMovie("ready","ready",11,{_x:53,_y:145,_rotation:-20 - random(20)});
var _loc2_ = r.nil * t.sum;
var _loc7_ = "$" + toCurrency(_loc2_);
r.stat.attachMovie("money","money" + r.md,r.md,{_x:b._x,_y:b._y + 70,txt:_loc7_});
r.md = r.md + 1;
r.ang += _loc2_;
updatesum();
r.zcash.start();
var _loc3_ = 40;
b._alpha = 100;
b.d = _loc3_;
b.onEnterFrame = function()
{
b.d--;
if(b.d < 5)
{
b._alpha -= 20;
if(!b.d)
{
b.removeMovieClip();
}
}
};
t.but.enabled = false;
t.d = _loc3_;
t.onEnterFrame = function()
{
t._alpha = Math.max(0,t._alpha - 10);
t._y = t._y + 1;
t.d--;
if(!t.d)
{
removeorder(t.id);
t.removeMovieClip();
}
};
}
else
{
r.stat.attachMovie("notenough","notenough",r.nbd + 100,{_x:345,_y:228});
}
};
MovieClip.prototype.popbignote = function(id, onumber, no, from, tipe, quan)
{
if(!r.stat.notebig._visible or r.stat.notebig.onumber != onumber)
{
var _loc1_ = random(10);
if(random(100) > 50)
{
_loc1_ = - _loc1_;
}
r.stat.attachMovie("notebig","notebig",r.nbd,{_x:345,_y:146,_rotation:_loc1_,onumber:onumber,no:no,from:from,tipe:tipe,quan:quan});
}
};
MovieClip.prototype.makeorder = function()
{
var _loc7_ = false;
id = r.order.length;
var _loc4_ = getrandom("custnames");
var _loc5_ = getrandom("honeytype");
var _loc12_ = r.honeynames[_loc5_];
var _loc8_ = 1 + random(Math.min(3,r.level));
if(_loc8_ > 1)
{
var _loc6_ = _loc8_ + " jars";
}
else
{
_loc6_ = _loc8_ + " jar";
}
var _loc2_ = r.ox + id * ospacing;
var _loc1_ = random(5);
if(random(100) > 50)
{
_loc1_ = - _loc1_;
}
r.stat.attachMovie("notesmall","notesmall" + r.nd,r.nd,{_x:_loc2_,_y:r.oy,_rotation:_loc1_,id:id,onumber:r.onumber,no:_loc5_,from:_loc4_,tipe:_loc12_,quan:_loc6_,sum:_loc8_});
r.order[id] = r.stat["notesmall" + r.nd];
r.onumber = r.onumber + 1;
r.nd = r.nd + 1;
};
MovieClip.prototype.appear = function(speed)
{
var t = this;
if(!speed)
{
speed = 10;
}
t.speed = speed;
t._alpha = 0;
t.onEnterFrame = function()
{
t._alpha += speed;
if(t._alpha >= 100)
{
t._alpha = 100;
delete t.onEnterFrame;
}
};
};
MovieClip.prototype.disappear = function(speed)
{
var t = this;
if(!speed)
{
speed = 10;
}
t.speed = speed;
t.onEnterFrame = function()
{
t._alpha -= speed;
if(t._alpha <= 0)
{
t._alpha = 0;
delete t.onEnterFrame;
t.removeMovieClip();
}
};
};
MovieClip.prototype.updatesum = function()
{
var _loc3_ = "x " + r.jars[1];
var _loc2_ = "x " + r.jars[2];
var _loc1_ = "x " + r.jars[3];
if(r.stat.honey.sum1.txt != _loc3_)
{
r.stat.honey.sum1.txt = _loc3_;
r.stat.honey.box1.gotoAndPlay(2);
}
if(r.stat.honey.sum2.txt != _loc2_)
{
r.stat.honey.sum2.txt = _loc2_;
r.stat.honey.box2.gotoAndPlay(2);
}
if(r.stat.honey.sum3.txt != _loc1_)
{
r.stat.honey.sum3.txt = _loc1_;
r.stat.honey.box3.gotoAndPlay(2);
}
r.stat.cash.txt = "$" + toCurrency(r.ang);
r.stat.saving.txt = "$" + toCurrency(r.totalang);
};
MovieClip.prototype.initob2 = function(id)
{
var t = this;
t.id = id;
t.onEnterFrame = function()
{
if(t.zone.hitTest(r._xmouse,r._ymouse,1))
{
t.a.hilite();
}
else
{
t.a.nolite();
}
};
t.stop();
};
MovieClip.prototype.removeflower = function(it)
{
it.plant = 0;
var f = it.place.flowers;
f.onEnterFrame = function()
{
f._alpha -= 5;
if(f._alpha <= 0)
{
f.removeMovieClip();
}
};
};
MovieClip.prototype.beestupid = function()
{
var _loc2_ = this;
_loc2_.think = [1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
_loc2_.think.randomize();
_loc2_.thinkno = 0;
_loc2_.stupid = 1;
_loc2_.speed = 2 + 0.1 * random(20);
};
MovieClip.prototype.beesmart = function()
{
var _loc2_ = this;
_loc2_.think = [1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0];
_loc2_.think.randomize();
_loc2_.thinkno = 0;
_loc2_.stupid = 0;
_loc2_.speed = 5 + 0.1 * random(20);
};
MovieClip.prototype.cekfence = function()
{
var _loc4_ = [];
var _loc3_ = 0;
while(_loc3_ < r.fences.length)
{
var _loc2_ = r.fences[_loc3_];
if(_loc2_.plant > 10)
{
var _loc1_ = 0;
while(_loc1_ < r.nests.length)
{
if(r.nests[_loc1_].targetflower == _loc2_)
{
_loc2_ = undefined;
break;
}
_loc1_ = _loc1_ + 1;
}
if(_loc2_ != undefined)
{
_loc4_.push(_loc2_);
}
}
_loc3_ = _loc3_ + 1;
}
if(_loc4_.length)
{
_loc4_.randomize();
var _loc5_ = _loc4_.pop();
return _loc5_;
}
return false;
};
MovieClip.prototype.cekclick = function()
{
var _loc2_ = this;
r.pressed = cekzone();
if(!r.pressed)
{
r.newpos = m._xmouse;
}
else
{
_loc2_.pmc = r.pressed._parent;
_loc2_.pid = r.pressed.id;
if(r.hold == 30 && (_loc2_.pid > 40 && _loc2_.pid <= 43))
{
if(_loc2_.pmc.plant > 0 && _loc2_.pmc.plant < 10)
{
r.newpos = _loc2_.pmc._x - 40;
}
else
{
r.newpos = _loc2_.pmc._x;
_loc2_.pmc = _loc2_.pid = undefined;
r.pressed = 0;
}
}
else
{
r.newpos = _loc2_.pmc._x;
}
}
};
MovieClip.prototype.snapshot = function(dest, sourc, x1, y1, wid, hei)
{
var _loc1_ = new flash.display.BitmapData(wid,hei,true,16777215);
var _loc2_ = new flash.geom.Matrix();
_loc2_.translate(- x1,- y1);
_loc1_.draw(sourc,_loc2_,null,null,new flash.geom.Rectangle(0,0,wid,hei),true);
dest.attachBitmap(_loc1_,1,"auto",true);
};
MovieClip.prototype.waitandsnap = function(delay)
{
var t = this;
t.d = delay;
t.onEnterFrame = function()
{
t.d--;
if(!t.d)
{
t.wid = 190;
t.hei = 160;
t.bottombleed = 10;
t.createEmptyMovieClip("place2",200);
snapshot(t.place2,t.place,(- t.wid) / 2,- t.hei + t.bottombleed,t.wid,t.hei);
t.place2._x = (- t.wid) / 2;
t.place2._y = - t.hei + t.bottombleed;
t.place.removeMovieClip();
t.fence.plant += 10;
}
};
};
MovieClip.prototype.hilite = function()
{
var _loc2_ = new flash.filters.GlowFilter(16777215,100,2,2,10,3,false,false);
this.filters = [_loc2_];
};
MovieClip.prototype.nolite = function()
{
this.filters = undefined;
};
MovieClip.prototype.initob = function(id)
{
var t = this;
t.id = id;
t.picked = 0;
t._visible = true;
t.onEnterFrame = function()
{
if(r.hold == t.id)
{
if(!t.picked)
{
t.picked = 1;
t._visible = false;
}
}
else if(t.picked)
{
t.picked = 0;
t._alpha = 0;
t._visible = true;
t.onEnterFrame = function()
{
t._alpha += 10;
if(t._alpha >= 100)
{
t._alpha = 100;
t.initob(t.id);
}
};
}
if(t.zone.hitTest(r._xmouse,r._ymouse,1))
{
t.a.hilite();
}
else
{
t.a.nolite();
}
};
t.stop();
};
MovieClip.prototype.cekzone = function()
{
var _loc1_ = 0;
while(_loc1_ < r.ob.length)
{
if(r.ob[_loc1_].hitTest(r._xmouse,r._ymouse,1))
{
return r.ob[_loc1_];
}
_loc1_ = _loc1_ + 1;
}
return false;
};
MovieClip.prototype.initzone = function()
{
var _loc2_ = this;
r.ob.push(_loc2_);
_loc2_.id = Number(_loc2_._name.substr(2,2));
_loc2_._parent.zone = _loc2_;
_loc2_._visible = false;
};
MovieClip.prototype.energize = function(a)
{
r.energy = Math.min(r.energymax,r.energy + a);
r.energy = Math.max(0,r.energy);
if(a > 0)
{
r.zbonus.start();
}
else
{
r.zhit.start();
}
r.energybar.gotoAndPlay(1);
};
MovieClip.prototype.initpopup = function(delay, distance, golabel)
{
var t = this;
if(!delay)
{
delay = 30;
}
if(!distance)
{
distance = 20;
}
t.yy = t._y - distance;
t._alpha = 0;
var d = delay;
t.onEnterFrame = function()
{
t._alpha = Math.min(100,t._alpha + 20);
t._y = Math.floor(t._y + (t.yy - t._y) / 3);
d--;
if(!d)
{
t.onEnterFrame = function()
{
t._alpha -= 20;
t._y -= 3;
if(t._alpha <= 0)
{
delete t.onEnterFrame;
if(!golabel)
{
t.removeMovieClip();
}
else
{
t.gotoAndPlay(golabel);
}
}
};
}
};
t.stop();
};
MovieClip.prototype.jiggle = function(beginska)
{
var t = this;
if(!beginska)
{
beginska = 150;
}
t._xscale = t._yscale = beginska;
t.ska = 100;
t.dx = 0;
t.dy = 0;
t.dv = 0.8;
t.dvstep = 0.6;
t.onEnterFrame = function()
{
t.dx = t.dx * t.dvstep + (t.ska - t._xscale) * t.dv;
t._xscale += t.dx;
t._yscale = t._xscale;
};
};
Array.prototype.count = function(val)
{
var _loc3_ = 0;
var _loc2_ = 0;
while(_loc2_ < this.length)
{
if(this[_loc2_] == val)
{
_loc3_ = _loc3_ + 1;
}
_loc2_ = _loc2_ + 1;
}
return _loc3_;
};
Array.prototype.contain = function(val)
{
var _loc3_ = false;
var _loc2_ = 0;
_loc2_ = 0;
while(_loc2_ < this.length)
{
if(this[_loc2_] == val)
{
_loc3_ = _loc3_ + 1;
}
_loc2_ = _loc2_ + 1;
}
return _loc3_;
};
Array.prototype.removeElement = function(i)
{
if(i == null)
{
i = 0;
}
var _loc4_ = this[i];
var _loc2_ = i;
while(_loc2_ < this.length - 1)
{
this[_loc2_] = this[_loc2_ + 1];
_loc2_ = _loc2_ + 1;
}
this.pop();
return _loc4_;
};
Array.prototype.removeValue = function(a)
{
var _loc2_ = 0;
while(_loc2_ < this.length)
{
if(a == this[_loc2_])
{
this.removeElement(_loc2_);
}
_loc2_ = _loc2_ + 1;
}
};
Array.prototype.randomize = function()
{
return this.sort(function(a, b)
{
return Math.floor(Math.random() * 2) != 0 ? -1 : 1;
}
);
};
Array.prototype.copy = Array.prototype.slice;
Object.prototype.clone = function()
{
if(this instanceof Array)
{
var _loc2_ = [];
var _loc3_ = 0;
while(_loc3_ < this.length)
{
_loc2_[_loc3_] = typeof this[_loc3_] != "object" ? this[_loc3_] : this[_loc3_].clone();
_loc3_ = _loc3_ + 1;
}
}
else if(this instanceof XML || this instanceof MovieClip)
{
_loc2_ = null;
trace("Warning! Object.clone can not be used on MovieClip or XML objects");
}
else
{
_loc2_ = {};
for(_loc3_ in this)
{
_loc2_[_loc3_] = typeof this[_loc3_] != "object" ? this[_loc3_] : this[_loc3_].clone();
}
}
return _loc2_;
};
ASSetPropFlags(Object.prototype,["clone"],1);
MovieClip.prototype.fadescreen = function(speed)
{
if(!speed)
{
speed = 5;
}
r.createEmptyMovieClip("dark",100001);
var d = r.dark;
d.speed = speed;
d.lineStyle(1,0,100);
d.beginFill(16777215,100);
d.moveTo(-5000,-5000);
d.lineTo(5000,-5000);
d.lineTo(5000,5000);
d.lineTo(-5000,5000);
d.endFill();
d.onEnterFrame = function()
{
d._alpha -= d.speed;
if(d._alpha <= 0)
{
d.removeMovieClip();
d.stop();
}
};
};
MovieClip.prototype.getrandom = function(aray)
{
if(r.randomlisting.length > 0)
{
var _loc3_ = 0;
var _loc1_ = 0;
while(_loc1_ < r.randomlisting.length)
{
if(r.randomlisting[_loc1_] == aray)
{
_loc3_ = 1;
break;
}
_loc1_ = _loc1_ + 1;
}
if(!_loc3_)
{
r.randomlisting.push(aray);
}
}
else
{
r.randomlisting = [];
r.randomlisting.push(aray);
}
if(r[aray + "getrandom"].length <= 0)
{
r[aray + "getrandom"] = [];
r[aray + "getrandom"] = r[aray].clone();
r[aray + "getrandom"].randomize();
if(r[aray + "getrandom"].length > 1)
{
if(r[aray + "lastpop"] == r[aray + "getrandom"][r[aray + "getrandom"].length - 1])
{
r[aray + "getrandom"].pop();
}
}
}
var _loc4_ = r[aray + "getrandom"].pop();
r[aray + "lastpop"] = _loc4_;
return _loc4_;
};
MovieClip.prototype.resetrandom = function()
{
if(r.randomlisting.length > 0)
{
var _loc1_ = 0;
while(_loc1_ < r.randomlisting.length)
{
r[r.randomlisting[_loc1_] + "getrandom"] = [];
r[r.randomlisting[_loc1_] + "lastpop"] = undefined;
_loc1_ = _loc1_ + 1;
}
}
};
MovieClip.prototype.findang = function(dx, dy)
{
return deg(Math.atan2(dy,dx));
};
MovieClip.prototype.rad = function(qdeg)
{
return qdeg * 0.017453292519943295;
};
MovieClip.prototype.deg = function(qrad)
{
return qrad * 57.29577951308232;
};
Color.prototype.setBrightness = function(value)
{
this.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});
var trans = this.getTransform();
var percent = Math.abs(value) / 100;
var brightnessColor = value <= 0 ? 0 : 255;
with(trans)
{
ra -= ra * percent;
ga -= ga * percent;
ba -= ba * percent;
rb += (brightnessColor - rb) * percent;
gb += (brightnessColor - gb) * percent;
bb += (brightnessColor - bb) * percent;
}
this.setTransform(trans);
};
Color.prototype.resetColor = function()
{
this.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});
};
Sound.prototype.fade = function(fadeType, fadeDuration)
{
this.fadeDuration = fadeDuration * 1000 / 100;
this.fadeType = fadeType;
this.currentVolume = this.getVolume();
this.intID = setInterval(function(thisObj)
{
thisObj.doFade(thisObj.fadeType);
}
,this.fadeDuration,this);
this.doFade = function(fadeType)
{
if(fadeType == "out")
{
this.setVolume(this.currentVolume--);
if(this.getVolume() <= 0)
{
clearInterval(this.intID);
}
}
else if(fadeType == "in")
{
this.setVolume(this.currentVolume++);
if(this.getVolume() >= 100)
{
clearInterval(this.intID);
}
}
};
};
MovieClip.prototype.wait = function(delay)
{
this.createEmptyMovieClip("wdl",55555);
this.wdl.delay = delay;
this.wdl.onenterframe = function()
{
this.delay = this.delay - 1;
if(!this.delay)
{
delete this.onenterframe;
this._parent.play();
this.removeMovieClip();
}
};
this.stop();
};
MovieClip.prototype.savecookie = function(vari, value)
{
var _loc1_ = SharedObject.getLocal("lazcookie","/");
_loc1_.data[vari] = value;
_loc1_.flush();
};
MovieClip.prototype.loadcookie = function(vari)
{
var _loc1_ = SharedObject.getLocal("lazcookie","/");
if(_loc1_.data[vari] != null)
{
return _loc1_.data[vari];
}
return false;
};